package com.hs.app.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.hs.app.dao.ICatagoryDao;
import com.hs.app.service.ICatagoryService;
import com.hs.core.dao.IBaseDao;
import com.hs.core.service.impl.BaseSevice;
import com.hs.core.utils.PageParam;
import com.hs.core.utils.PageUtil;
@Service  
public class CatagoryService extends BaseSevice implements ICatagoryService{
    private  ICatagoryDao catagoryDao;
	@Override
	public IBaseDao getBaseDao() {
		
		return catagoryDao;
	}
	@Autowired
	public void setSearchDao(ICatagoryDao catagoryDao) {
		this.catagoryDao = catagoryDao;
	}
	@Transactional(readOnly = true)
	public PageUtil getPageList(PageParam pageParam){
		return this.catagoryDao.getPageList(pageParam);
	}
	public ICatagoryDao getCatagoryDao() {
		return catagoryDao;
	}
	public void setCatagoryDao(ICatagoryDao catagoryDao) {
		this.catagoryDao = catagoryDao;
	}
	
	 
}
